package com.xianda.spring.base.execute;

import com.xianda.spring.base.BaseDirectService;
import com.xianda.spring.base.param.BaseRequest;
import com.xianda.spring.base.param.BaseResponse;
import org.springframework.stereotype.Service;

@Service
public class DoExcel implements BaseDirectService {

    private static final String DIRECT_SERVICE_NAME = "EXCEL";

    @Override
    public String getName() {
        return DIRECT_SERVICE_NAME;
    }

    @Override
    public boolean getEnableCheck() {
        return true;
    }

    @Override
    public BaseResponse doExecute(BaseRequest req) {

        BaseResponse br = new BaseResponse();
        br.setBody("12465");
        System.out.println(br);
        return br;
    }
}
